package com.urea.system.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.urea.common.annotation.Excel;
import com.urea.common.core.domain.BaseEntity;

/**
 * 车队绑定的终端对象 t_fleet_terminal
 * 
 * @author liuzd
 * @date 2023-08-01
 */
@TableName("t_fleet_terminal")
@Data
@ToString
public class FleetTerminal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 车队id */
    @Excel(name = "车队id")
    @ApiModelProperty( "车队id")
    private Long fleetId;

    /** 终端id */
    @Excel(name = "终端id")
    @ApiModelProperty( "终端id")
    private Long terminalId;

    /** 折扣率;0.1表示1折 */
    @Excel(name = "折扣率;0.1表示1折")
    @ApiModelProperty( "折扣率;0.1表示1折")
    private BigDecimal discount;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty( "创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;


}
